<!DOCTYPE html>
<html lang="zh">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <meta name="viewport" content="width=990, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
        <meta charset="utf-8" />
        <meta name="renderer" content="webkit">
        <title>订单支付_江西电影票网</title>
        <meta name="keywords"/>
        <meta name="description" content="江西电影票网是江西最大的电影票在线选座平台，同时江西电影票网还提供电影排期，影院信息查询、江西本土电影行业资讯等服务。看电影，来江西电影票选座"/>
        <link href="resource/images/favicon.ico" rel="shortcut icon" type="image/x-icon" />
        <link href="resource/css/main.css" rel="stylesheet" />
        <link href="resource/css/style.min.css?v=20180606" rel="stylesheet" />
        
        <script src="resource/js/jquery.1.7.2.min.js" type="text/javascript"></script>
        <script src="resource/js/json2.min.js" type="text/javascript"></script>
        <script src="resource/js/helper.js" type="text/javascript"></script>
        <script src="resource/js/jquery.tool.expose.min.js" type="text/javascript"></script>
        <script src="resource/js/jquery.tool.overlay.min.js" type="text/javascript"></script>
        <script src="resource/js/jquery.tool.tabs.min.js" type="text/javascript"></script>
         
    <script type="text/javascript">
        var couponId = "";
        $(function () {
            var str = $(".ticket-info .tel").text();
            str = str.replace(/(^\d{3}|\d{4}(?!$))/g, '$1-');
            $(".ticket-info .tel").text(str);
            $(".ticket-info .btn").click(function () {
                window.location = '/filmchooseseat/' + '1000000108872082' + "_" + '226262f7-2e0d-4ddc-882a-d9e16295dbb2' + "_" + '3ecf43b8-6b80-4248-a186-38f98a7cfa8d' + "_" + '2020-08-31' + '.html';
            });
            var rhtml = ohtml = "";
            var j = 0;
            var recArry = ["cup", "account", "alipay", "weixin"];
            var objpay = $.parseJSON('[{"PayID":"account","MethodName":"账户余额"}, {"PayID":"alipay","MethodName":"支付宝"},{"PayID":"weixin","MethodName":"微信"}]');
            var accountIndex;
            $.each(objpay, function (i, item) {
                if (item.PayID == "account") {
                    accountIndex = i;
                }  
            })
            
            if (accountIndex != undefined) {
                if ("" != "f0722dbb-e405-4f17-9a41-eaae87aecc5b") {
                        if ("0" != "0") {
                            objpay.splice(accountIndex, 1);
                    }
                }
                //if (getCookie("Flag") == "1") {
                //    objpay = $.map(objpay, function (item) {
                //        return item.PayID == "account"?item:null;
                //    });  
                //}
            }
            $.each(objpay, function (i, item) {
                if ($.inArray(item.PayID, recArry) != -1) {
                    var cls = "";
                    if (j == 0) {
                        cls = 'class="wd"';
                      
                    }
                    if (item.PayID == "account") {
                        rhtml += '<li ' + cls + '><label class="' + item.PayID + '"><input type="radio" name="payment" class="fn-left" data-paymethod="' + item.MethodName + '" data-payid="' + item.PayID + '" /><span class="fn-left">余额支付(<em class="red">0</em>元)</span></label></li>';
                    } else {
                        rhtml += '<li ' + cls + '><label class="' + item.PayID + '"><input type="radio" name="payment" data-paymethod="' + item.MethodName + '" data-payid="' + item.PayID + '" /></label></li>';
                    }

                    j++;

                } else {
                    ohtml += '<li><label class="' + item.PayID + '"><input type="radio" name="payment" data-paymethod="' + item.MethodName + '" data-payid="' + item.PayID + '" /></label></li>';
                }
            });
            if (rhtml) {
                $(".payment-payorder .recommend ul").html(rhtml);
            } else {
                $(".payment-payorder .recommend").hide()
            }
            if (ohtml) {
                $(".payment-payorder .other ul").html(ohtml);
            } else {
                $(".payment-payorder .other").hide();
            }
            $(".payment-payorder .recommend .account em").text('72.8');
            countDown(parseInt("899.864713"), ".cuttime-show", "订单超时", 1, 1, "/pay/payerror/3ecf43b8-6b80-4248-a186-38f98a7cfa8d.html?paytype=1");
            countDown(parseInt("899.864713"), ".cuttime-show2", "订单超时", 1,0);
            $("#btnpay").click(function () {
                if ("True".toLowerCase() == "true") {
                    var payradio = $('input[name="payment"]:checked');
                    var paymethod = $(payradio).attr("data-paymethod");
                    if (getCookie("Append")) {
                        var Jxyp_Card = parseInt($.parseJSON(getCookie("Append")).Jxyp_Card);
                        var seatnum = parseInt($(".film-info").data("seatnum"));
                        if (Jxyp_Card >= seatnum) {
                            paymethod = "PayByAccount";
                        }
                    }
                    if (paymethod) {
                        if (paymethod == "PayByAccount") {
                            paybyaccount();
                        } else {
                            $(".goPay").overlay({ api: true }).load();
                            $(".pay-alert-payorder .pay-success").click(function () {
                                window.location.href = "/account/userorderlist.html";
                            });
                            $(".pay-alert-payorder .pay-error").click(function () {
                                $(".goPay").overlay({ api: true }).close();
                            });
                            if (couponId) {
                                window.open('/pay/paycontainer/' + '11120083116385634521' + '|' + couponId + '_' + paymethod + '.html', "_blank");
                            } else {
                                window.open('/pay/paycontainer/' + '11120083116385634521' + '_' + paymethod + '.html', "_blank");
                            }
                        }
                    } else {
                        alert("请选择支付方式");
                    }
                } else {
                    window.location.href = "/";
                }
            });
            var toTopHeight = $(".box-payinfo-payorder").offset().top;
            $(window).scroll(function () {
                if ($(window).scrollTop() < (toTopHeight-140*3-120)) {
                    $(".pay-info-payorder").addClass("fix-payorder");
                } else {
                    $(".pay-info-payorder").removeClass("fix-payorder");
                }
            });
            if ($(".tip-des").attr("data-num") != '0') {
                $(".coupons-payorder .tip").toggle(function () {
                    $(this).addClass("show-list");
                    $(".coupons").removeClass("fn-hide");
                }, function () {
                    $(this).removeClass("show-list");
                    $(".coupons").addClass("fn-hide");
                });
            } else {
                $(".coupons-payorder .tip").addClass("show-list");
            }
            var discount = 0;
            var txthtml = "";
            $(".coupons input[type=checkbox]").on("click", function () {
                var self = $(this);
                self.parent().parent().parent().siblings().find("input[type=checkbox]").removeAttr("checked").removeClass("act");
                if (!self.hasClass("act")) {
                    var price = self.attr("data-price");
                    discount = price;
                    txthtml = "<em class='red'>已使用一张优惠券，优惠" + discount + "元</em>";
                    self.addClass("act");
                    var id = self.val();
                    couponId = id;
                } else {
                    txthtml = "<em class='red'>" + $(".tip-des").attr("data-num") + "</em>张可用";
                    couponId = 0;
                    self.removeClass("act");
                    discount = 0;
                }
                $(".tip-des").html(txthtml);
                if (discount) {
                    $(".pay .discount").text(discount).parent().removeClass("fn-hide");
                } else {
                    if (!$(".pay .discount").parent().hasClass("fn-hide")) {
                        $(".pay .discount").text(discount).parent().addClass("fn-hide");
                    }
                }
                var needpay = parseFloat($("#needpay").attr("data-val")) - discount;
                needpay = needpay < 0 ? 0 : needpay;
                if (needpay == 0) {
                    $('input[name="payment"]').each(function () {
                        if ($(this).attr("data-paymethod") == 'PayByAccount') {
                            $(this).attr("checked", true);
                        }
                    });
                    $(".payment-payorder").css("display", "none");
                } else {
                    $('input[name="payment"]').removeAttr("checked");
                    $(".payment-payorder").css("display", "block");
                }
                $("#needpay").text(parseFloat(needpay).toFixed(2).toString());
            });
        });
        var submiting=false;
        function paybyaccount(){
                if (submiting) return;
                var OrderNo = '11120083116385634521';
                if (couponId) {
                    OrderNo = '11120083116385634521' + "|" + couponId;
                }
                $.ajax({
                    url: "/pay/PayByAccount.html",
                    type: 'post',
                    data: { "OrderNO": OrderNo },
                    beforeSend: function () {
                        submiting = true;
                        $("#btnpay").addClass("disabled");
                    },
                    success: function (respData) {
                        if (respData.ResultCode == "0") {
                            var Account = parseFloat(getCookie("Account")) - parseFloat($("#needpay").text());
                            SetCookie("Account", Account,true);
                            window.location = "/pay/paysucc.html?orderno=" + '11120083116385634521';
                            
                        }
                        else {
                            alert(respData.ErrMsg);
                        }
                    },
                    complete: function () {
                        $("#btnpay").removeClass("disabled");
                        submiting = false;
                    },
                    error: function (type) {
                        submiting = false;
                        $("#btnpay").removeClass("disabled");
                    }
                });
        }
    </script>

        <script type="text/javascript">
            $(function () {
                $(".bottom-nav li:first").css("margin-left","0");
                $(".bottom-nav li:last").addClass("fn-nobg");
                $(".top-nav .user-name").text("明礼馨德(13918621)");
                $(".main-nav .location").toggle(function () {
                    $(this).addClass("lsec").find(".other-city").show();
                }, function () {
                    $(this).removeClass("lsec").find(".other-city").hide();
                });
                $(window).scroll(function () {
                    if ($(window).scrollTop() > 100) {
                        $(".nav-scroll").fadeIn(1500);
                    } else {
                        $(".nav-scroll").fadeOut(1500);
                    }
                });
                $(".scroll-top").click(function () {
                    $("html, body").animate({
                        scrollTop: "0px"
                    }, {
                        duration: 500,
                        easing: "swing"
                    });
                    return false;
                });
                $(".nav-scroll .code").hover(function () {
                    $(this).find("span").show();
                }, function () {
                    $(this).find("span").hide();
                });
            });

            function changecity(citycode) {
                if (window.location.toString().indexOf("cinemalist") > -1) {
                    window.location = "/cinemalist/" + citycode + ".html";
                }
                else {
                    document.getElementById("ccitycode").value = citycode;
                    document.getElementById("citycodeform").submit();
                }
            }
        </script>
    </head>
    <body>
        <div class="header">
            <div class="top-nav">
                <div class="container fn-clear">
                      <span class="tip">欢迎来到江西电影票，<span class="user-name"></span><a class="loginout" href="javascript:void(0);">退出</a></span>
                    <ul>
                        <li><a href="usercenter.html" title="个人中心" data-flag="1">个人中心</a></li>
                        <li><a href="userorderlist.html" title="我的订单" data-flag="1">我的订单</a></li>
                        <li><a href="/help/helpindex.html" title="帮助中心" target="_blank">帮助中心</a></li>
                        <li>&nbsp;联系客服：0791-87871177</li>
                    </ul>
                </div>
            </div>
            <div class="main-nav">
                <div class="container fn-clear">
                    <div class="logo"><a href="/"><img src="resource/images/logo.png" alt="江西电影票" title="江西电影票" width="165"/></a></div>
                    <div class="location" data-citycode="360100">
                        <span class="lc">南昌</span>
                        <ul class="other-city">
                            <li><a onclick="changecity('360100')" href="javascript:void(0)">南昌</a></li>
                            <li><a onclick="changecity('360200')" href="javascript:void(0)">景德镇</a></li>
                            <li><a onclick="changecity('360300')" href="javascript:void(0)">萍乡</a></li>
                            <li><a onclick="changecity('360400')" href="javascript:void(0)">九江</a></li>
                            <li><a onclick="changecity('360500')" href="javascript:void(0)">新余</a></li>
                            <li><a onclick="changecity('360600')" href="javascript:void(0)">鹰潭</a></li>
                            <li><a onclick="changecity('360700')" href="javascript:void(0)">赣州</a></li>
                            <li><a onclick="changecity('360800')" href="javascript:void(0)">吉安</a></li>
                            <li><a onclick="changecity('360900')" href="javascript:void(0)">宜春</a></li>
                            <li><a onclick="changecity('361000')" href="javascript:void(0)">抚州</a></li>
                            <li><a onclick="changecity('361100')" href="javascript:void(0)">上饶</a></li>
                        </ul>
                    </div>
                    <ul class="nav-list fn-clear">
                        <li data-index="index"><a href="index.html">首页</a></li>
                        <li data-index="film"><a href="filmshowlist.html">电影</a></li>
                        <li data-index="cinema"><a href="cinemalist.html">影院</a></li>
                        
                        <li data-index="news"><a href="newslist.html">资讯</a></li>
                        
                    </ul>
                    <div class="box-code-tg">
                        
                        <p class="code">
                            <a href="javascript:void(0);">手机购影票</a>
                            <span class="tag"></span>
                        </p>
                    </div>
                </div>
            </div>
        </div>
        <div id="body" class="main">
                
<div class="wrapper-pay-order">
    <div class="tip-nav-payorder">
        <ul>
            <li class="wd1">1.选择影片场次</li>
            <li class="wd3">2.在线选座</li>
            <li class="wd2 act">3.确认订单支付</li>
            <li class="wd4">4.影院取票观影</li>
        </ul>
    </div>
    <div class="order-info-payorder">
        <div class="title">
            确认订单信息</div>
        <div class="box-order-info fn-clear">
                <div class="film-info" data-seatnum="2">
                    <h3>八佰</h3>
                    <p>
                        <span>影院：</span><span>南昌天幕影城（蓝海店）</span></p>
                    <p>
                        <span>影厅：</span><span>六号激光厅</span></p>
                    <p>
                        <span>票价：</span><span>36.00
                            元</span></p>
                    <p>
                        <span>场次：</span><span>2020-08-31 16:50</span></p>
                    <p>
                        <span>座位：</span><span>3排9座,3排8座</span></p>
                    <p>
                        <span>总价：</span><span>72.00 元</span></p>
                    <span class="pic">
                        <img src="resource/images/20190617110719866001852.jpg" width="140" height="200" />
                    </span>
                </div>
                <div class="ticket-info">
                    <p>
                        取票手机号：</p>
                    <p class="tel">13918621282</p>
                    <p>
                        取票短信可能会被手机软件拦截，请注意！</p>
                    <p class="fn-clear">
                        <a href="javascript:void(0);" class="btn">重新选座</a></p>
                </div>

        </div>
    </div>
    <div class="coupons-payorder">
        <div class="title">选择优惠</div>
        <div class="tip fn-clear">
            <span class="fn-left">使用优惠券</span>
            
        </div>
        <ul class="coupons fn-hide">
        </ul>
        <span class="tip-des" data-num="0"><em class="red">0</em>张可用</span>
        <p class="error">暂无可用优惠券</p>

    </div>
    <div class="card-payorder fn-hide">
        <div class="title">选择优惠</div>
       
        <div class="tip fn-clear show-list">
            <span class="fn-left">使用观影卡</span>
        </div>
        <div class="coupons">
            <div class="card">
                <div class="info">
                    <p>观影卡（次卡）</p>
                    <p class="no">0005000</p>
                    <span class="select"></span>
                </div>
                <p class="des">本笔订单使用<em class="use"></em>次，还剩余<em class="last"></em>次</p>
            </div>
        </div>
        <span class="tip-des" data-num="10"><em class="red"></em>&nbsp;次可用</span>
    </div>

    <div class="payment-payorder">
        <div class="title">
            选择支付方式</div>
        <div class="recommend fn-clear">
            <span class="tag">推荐方式：</span>
            <div class="con">
                <ul>
                </ul>
            </div>
        </div>
        <div class="other fn-clear">
            <span class="tag">其他方式：</span>
            <div class="con">
                <ul>
                </ul>
            </div>
        </div>
    </div>
    <div class="box-payinfo-payorder">
        <div class="pay-info-payorder fix-payorder">
            <div class="container fn-clear">
                <div class="cuttime">
                    <p class="p1">
                        <span>请在</span><span class="cuttime-show"></span><span>内完成支付</span></p>
                    <p>
                        超时系统将自动取消订单</p>
                </div>
                <div class="pay">
                        <p>
                            <span>总价：72.00 元，</span>
                            <span class="tip-ck fn-hide">使用观影卡兑换电影票*<em>1</em>，</span>
                            <span class="fn-hide">优惠<em class="discount red">15</em>元</span>
                            <span>还需支付 <span id="needpay" data-val="72.00">72.00</span> 元</span>
                        </p>
                        <p>
                            <a id="btnpay" href="javascript:void(0);" class="btn fn-right">立即支付</a></p>
                        <a rel="#payOrderAlert" href="javascript:void(0);" class="goPay fn-hide"></a>

                </div>
            </div>
        </div>
    </div>
    <div class="pay-alert-payorder" id="payOrderAlert">
        <h4>
            请尽快完成付款</h4>
        <div class="des">
            <p class="big">
                <span>请在</span><span class="cuttime-show2"></span><span>秒内完成付款,超时系统将自动取消座位</span></p>
            <p>
                如遇问题请联系客服0791-87871177</p>
        </div>
        <p class="box-btn fn-acenter">
            <a href="javascript:void(0);" class="btn pay-success">已付款</a> <a href="javascript:void(0);"
                class="btn pay-error">重新选择</a>
        </p>
    </div>
</div>

        </div>
        <div class="footer">
            <div class="info-help fn-clear">
                <div class="container">
                    <div class="logo"><img src="resource/images/logo_1.png" alt="江西电影票" /></div>
                    <div class="help-nav">
                        <ul>
                            <li><a href="/help/usehelp.html#chooseat" target="_blank">如何选座</a></li>
                            <li><a href="/help/usehelp.html#dopay" target="_blank">如何支付</a></li>
                            <li><a href="/help/usehelp.html#geticket" target="_blank">如何取票</a></li>
                            <li><a href="/help/usehelp.html#buyfailed" target="_blank">购票失败</a></li>
                            <li><a href="/help/usehelp.html#reglogin" target="_blank">注册登录</a></li>
                            <li><a href="/help/usehelp.html">使用帮助</a></li>
                        </ul>
                    </div>
                    <div class="contact-info">
                        <span>0791-87871177</span>
                    </div>
                    <span class="code"></span>
                </div>
            </div>
            
            <div class="bottom-nav">
                <div class="container fn-clear">
                    <ul>
                        <li><a href="/help/helpindex.html" target="_blank">关于我们</a></li>
                        <li><a href="/help/contactus.html" target="_blank">联系我们</a></li>
                        <li><a href="/help/joinus.html" target="_blank">诚聘英才</a></li>
                        <li><a href="/help/legalstatement.html" target="_blank">法律声明</a></li>
                        <li><a href="/help/serviceterms.html" target="_blank">服务条款</a></li>
                        <li><a href="/help/cooperativepartner.html" target="_blank">合作伙伴</a></li>
                    </ul>
                    <span>经营性ICP：赣B2-20140012&nbsp;&nbsp;<a href="http://www.beian.miit.gov.cn" rel="nofollow" target="_blank">赣ICP备14000663号</a>&nbsp; &copy;江西省影票文化传媒有限公司版权所有</span>
                </div>
            </div>
        </div>
        <div class="verlayLogin" id="verlayLogin">
            <div class="container">
                <h2>&nbsp;</h2>
                <div class="tag">
                    <ul>
                        <li><a href="#"data-tag="2">手机验证码登录</a>/</li>
                        <li><a href="#" data-tag="1">账户登录</a></li>
                    </ul>
                </div>
                <div class="box-form" style="display:block;">
                    <p><input name="telc" class="telc" type="text" maxlength="15" placeholder="手机号" /></p>
                    <div class="img-code-wrap">
                        <div class="img-code"><input name="imgCode" type="text" maxlength="8" placeholder="输入右侧验证码" /></div>
                        <span class="img-code-show"><img src="" width="100%" /></span>
                    </div>
                    <p class="box-checkcode">
                        <input name="checkCode" class="check-code" type="text" maxlength="8" placeholder="输入验证码" />
                        <span class="btn send-checkcode">获取验证码</span>
                    </p>
                </div>

                <div class="box-form">
                    <p><input name="tel" class="tel" type="text" value="手机号" /></p>
                    <p><input name="password" class="pwd bgpwd2" type="password" /></p>
                    <div class="remember-status fn-clear">
                        <label><input type="checkbox" name="rememberStatus" class="rememberst"/>记住密码一周</label>
                    </div>
                </div>
                <div class="login"><p class="btn" id="doLogin">登录</p></div>
                <div class="intro fn-clear">
                    <span class="fn-left"><a href="/forgetpwd.html">忘记密码</a></span>
                    <span class="fn-right"><a href="/register.html">立即注册</a></span>
                </div>
                
            </div>
        </div>
        <div class="nav-scroll">
            <p class="scroll-top"><a href="javascript:void(0);"></a></p>
            <p class="feedback"><a href="/help/feedback.html" target="_blank"></a></p>
            <p class="code">
                <span></span>
            </p>
        </div>
        <script type="text/javascript">
            var linkLogin = "";
            var scrollFunc = function (e) {
                e = e || window.event;
                if (e && e.preventDefault) {
                    e.preventDefault();
                    e.stopPropagation();
                } else {
                    e.returnvalue = false;

                    return false;
                }
            }
            $(".top-nav li a").click(function () {
                if ($(this).attr("data-flag") == 1) {
                    linkLogin = $(this).attr("href");
                    if ("True".toLowerCase() != "true") {
                        $(".boxLogin").overlay({ api: true }).load();
                        return false;
                    }
                }
            });
            $(".img-code-show img").on('click', function () {
                $(this).attr("src", "/account/CheckCode.html?v=" + Math.random());
            });
            $(".main-nav .code a").hover(function () {
                $(this).siblings(".tag").show();
            }, function () {
                $(this).siblings(".tag").hide();
            });
            $(".verlayLogin").keydown(function (e) {
                var curKey = e.which; 
                if (curKey == 13) {
                    $("#doLogin").trigger("click");
                }
            });
            $(".boxLogin").overlay({
                closeOnClick: false,
                top: 'center',
                mask: {
                    color: '#000',
                    closeSpeed: 700,
                    opacity: 0.7
                },
                onBeforeLoad: function (k) {
                    $('body').on('mousewheel', function (e) {
                        scrollFunc(e);
                    });
                },
                onClose: function () {
                    $('body').off('mousewheel');
                }
            });
            var cursec = 60;
            var submiting = false;
            $(".verlayLogin .send-checkcode").click(function () {
                var $this = $(this);
                if (submiting) return false;
                var telc = $.trim($(".verlayLogin .telc").val());
                var imgCode = $.trim($("input[name=imgCode]").val());
                if (!telc) {
                    alert("请输入手机号码！");
                    return;
                }
                if (!imgCode) {
                    alert("请输入图形验证码！");
                    return;
                }
                $.ajax({
                    url: '/account/SendSmsRandom.html',
                    data: { Mobile: telc, ValilCode: imgCode },
                    type: 'post',
                    dataType: 'json',
                    beforeSend: function () {
                        submiting = true;
                        $this.text("正在发送");
                        $this.addClass("disable");
                    },
                    success: function (data) {
                        if (data.ResultCode == "0") {
                            submiting = true;
                            if (cursec < 60) {
                                return;
                            }
                            var timer = setInterval(function () {
                                if (cursec == 60) {
                                    $this.addClass("disable");
                                }
                                $this.text(cursec + "秒后重发");
                                if (cursec == 0) {
                                    window.clearInterval(timer);
                                    submiting = false;
                                    cursec = 60;
                                    $this.text("获取验证码");
                                    $this.removeClass("disable");
                                } else {
                                    cursec--;
                                }
                            }, 1000);
                        } else {
                            $(".img-code-show img").attr("src", "/account/CheckCode.html?v=" + Math.random());
                            submiting = false;
                            alert(data.ErrMsg);
                            $this.removeClass("disable");
                            $this.text("获取验证码");
                        }
                    },
                    error: function () {
                        submiting = false;
                        $this.removeClass("disable");
                        alert("获取验证码失败");
                    }
                });
            });
            $("#verlayLogin input.tel").focus(function () {
                if ($(this).val() == "手机号") {
                    $(this).val("");
                }
            });
            $("#verlayLogin input.tel").blur(function () {
                if ($(this).val() == "") {
                    $(this).val("手机号");
                }
            });
            $("#verlayLogin input.pwd").focus(function () {
                $(this).removeClass("bgpwd2");
            });
            $("#verlayLogin input.pwd").blur(function () {
                if ($(this).val() == "") {
                    $(this).addClass("bgpwd2");
                }
            });
            $("#doLogin").click(function () {
                var tag=$(this).attr("data-tag");
                var tel = $.trim($(".verlayLogin .tel").val());
                var pwd = $.trim($(".verlayLogin .pwd").val());
                var telc = $.trim($(".verlayLogin .telc").val());
                var checkCode = $.trim($(".verlayLogin .check-code").val());
                var isCheckRemember = false;
                if ($(".rememberst").is(':checked')) {
                    isCheckRemember = true;
                }
                if (tag == 1) {
                    if (!tel || tel == "手机号") {
                        alert("请输入手机号码！");
                        return;
                    }
                    if (!pwd) {
                        alert("请输入密码！");
                        return;
                    }
                    postdata = { Mobile: tel, Pass: pwd, Type: tag };
                }
                if (tag == 2) {
                    if (!telc) {
                        alert("请输入手机号码！");
                        return;
                    }
                    if (!checkCode) {
                        alert("请输入验证码！");
                        return;
                    }
                    postdata = { Mobile: telc, Pass: checkCode, Type: tag };
                }
                $.ajax({
                    url: '/account/VerifyMember.html',
                    data: postdata,
                    type: 'post',
                    dataType: 'json',
                    success: function (data) {
                        if (data.ResultCode == "0") {
                            if (isCheckRemember) {
                                SetCookie("LocalToken", data.ErrMsg, 7);
                                SetCookie("LocalMobile", data.Mobile, 7);
                            }
                            setsessionstorage(data);
                            if (linkLogin) {
                                window.location.href = linkLogin;
                            } else {
                                window.location.reload();
                            }
                        } else {
                            alert(data.ErrMsg);
                        } 
                    },
                    error: function () {
                        alert("网络错误,稍后再试！");
                    }
                });
            });
            $(".loginout").click(function () {
                loginout();
            });
            $(".verlayLogin .tag ul").tabs(".verlayLogin .box-form", {
                onClick: function () {
                    $("#doLogin").attr("data-tag", this.getCurrentTab().attr("data-tag"));
                }
            });
            
            function loginout(){
                $.ajax({
                    url: '/account/loginout.html',
                    data: {},
                    type: 'post',
                    dataType: 'json',
                    success: function (data) {
                        if (data.ResultCode == "0") {
                            clearsessionstorage();
                            window.location = "/";
                        } else {
                            alert(data.ErrMsg);
                        }
                    },
                    error: function () {
                        alert("网络错误,稍后再试！");
                    }
                });
            }
            
        </script>
        <form id="citycodeform" method="post" enctype="application/x-www-form-urlencoded"  action="/">
           <input type="hidden"  name="CityCode" id="ccitycode"/>
        </form>
        
    <script type="text/javascript">
        var Jxyp_Card = parseInt(0);
        if (Jxyp_Card > 0) {
            $(".coupons-payorder").addClass("fn-hide");
            $(".card-payorder").removeClass("fn-hide");
            var seatnum = parseInt($(".film-info").data("seatnum"));
            var pay_qy = 0;
            if (Jxyp_Card < seatnum) {
                pay_qy = Jxyp_Card;
            } else {
                $(".card-payorder").css("paddingBottom", "20px");
                $(".payment-payorder").addClass("fn-hide");
                pay_qy = seatnum;
            }
            $(".card-payorder .card .des .use").text(pay_qy);
            $(".card-payorder .card .des .last").text(Jxyp_Card - pay_qy);
            $(".card-payorder .tip-des em").text(Jxyp_Card);
            $(".tip-ck em").text(pay_qy).parent().removeClass("fn-hide");
        }
        $(".goPay").overlay({
            closeOnClick: false,
            top: 'center',
            mask: {
                color: '#000',
                closeSpeed: 700,
                opacity: 0.7
            },
            onBeforeLoad: function () {
                $('body').on('mousewheel', function (e) {
                    scrollFunc(e);
                });
            },
            onClose: function () {
                $('body').off('mousewheel');
            }
        });
    </script>

       
    </body>
</html>